<?php /* Smarty version Smarty-3.1.8, created on 2012-11-04 13:47:16
         compiled from "E:\www\teraco/templates\admin\product_all\list.temp.html" */ ?>
<?php /*%%SmartyHeaderCode:12506509671e466bb64-04401988%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '15066421e8b51690b0ce0106c2db75150f487991' => 
    array (
      0 => 'E:\\www\\teraco/templates\\admin\\product_all\\list.temp.html',
      1 => 1351335084,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12506509671e466bb64-04401988',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'menu' => 0,
    'searchtype' => 0,
    'infoText' => 0,
    'infoClass' => 0,
    'formId' => 0,
    'base_url' => 0,
    'op' => 0,
    'pid' => 0,
    'searchTerms' => 0,
    'searchStatus' => 0,
    'orderDir' => 0,
    'orderBy' => 0,
    'usertemplate' => 0,
    'listObjects' => 0,
    'i' => 0,
    'object' => 0,
    'act' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_509671e47d9d65_24749748',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_509671e47d9d65_24749748')) {function content_509671e47d9d65_24749748($_smarty_tpl) {?><?php if (!is_callable('smarty_function_l')) include 'E:\\www\\teraco\\libraries\\plugins\\function.l.php';
?><?php $_smarty_tpl->tpl_vars['formId'] = new Smarty_variable('list', null, 0);?>
<!-- Content -->
<div id="content">
    <div class="highlight">
        <?php if (isset($_smarty_tpl->tpl_vars['menu']->value)){?><?php echo $_smarty_tpl->tpl_vars['menu']->value;?>
<?php }?>
		<?php if (isset($_smarty_tpl->tpl_vars['searchtype']->value)){?><?php echo $_smarty_tpl->tpl_vars['searchtype']->value;?>
<?php }?>
        <?php if ($_smarty_tpl->tpl_vars['infoText']->value){?>
            <div class="<?php echo $_smarty_tpl->tpl_vars['infoClass']->value;?>
">
                <h4>Result:</h4>
                <p><?php echo $_smarty_tpl->tpl_vars['infoText']->value;?>
</p>
            </div>
        <?php }?>
        <?php echo $_smarty_tpl->getSubTemplate ("admin/toolbar.temp.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title'=>'toolbar'), 0);?>
        
        <form id="<?php echo $_smarty_tpl->tpl_vars['formId']->value;?>
" name="<?php echo $_smarty_tpl->tpl_vars['formId']->value;?>
" action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
" method="post">
            <div class="tableContent">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <thead>
                        <tr>
                            <th width="5%"><input class="box3" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('<?php echo $_smarty_tpl->tpl_vars['formId']->value;?>
');" /></th>
                            <th width="10%"><?php echo smarty_function_l(array('s'=>'id'),$_smarty_tpl);?>
</th>
                            <th width="20%"><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['op']->value;?>
/act/list/pid/<?php echo $_smarty_tpl->tpl_vars['pid']->value;?>
/searchTerms/<?php echo $_smarty_tpl->tpl_vars['searchTerms']->value;?>
/searchStatus/<?php echo $_smarty_tpl->tpl_vars['searchStatus']->value;?>
/orderBy/code/orderDir=<?php if ($_smarty_tpl->tpl_vars['orderDir']->value=='ASC'){?>DESC<?php }else{ ?>ASC<?php }?>" title="<?php echo smarty_function_l(array('s'=>'click_here_to_sort_by'),$_smarty_tpl);?>
 <?php echo smarty_function_l(array('s'=>'code'),$_smarty_tpl);?>
"><?php echo smarty_function_l(array('s'=>'code'),$_smarty_tpl);?>
<?php if ($_smarty_tpl->tpl_vars['orderBy']->value=='code'){?>&nbsp;<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/templates/<?php echo $_smarty_tpl->tpl_vars['usertemplate']->value;?>
/images/ico_<?php if ($_smarty_tpl->tpl_vars['orderDir']->value=='DESC'){?>down<?php }else{ ?>up<?php }?>.gif" alt="" width="12" height="12" /><?php }?></a></th>                         
                            <th width="35%"><?php echo smarty_function_l(array('s'=>'colour'),$_smarty_tpl);?>
</th>
                            <th width="10%"><?php echo smarty_function_l(array('s'=>'status'),$_smarty_tpl);?>
</th>
                            <th width="15%"><?php echo smarty_function_l(array('s'=>'actions'),$_smarty_tpl);?>
</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if ($_smarty_tpl->tpl_vars['listObjects']->value){?>
                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable($_smarty_tpl->tpl_vars['listObjects']->value['pages']['start'], null, 0);?>
                        <?php  $_smarty_tpl->tpl_vars['object'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['object']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listObjects']->value['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['object']->key => $_smarty_tpl->tpl_vars['object']->value){
$_smarty_tpl->tpl_vars['object']->_loop = true;
?>
                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                        <tr <?php if ($_smarty_tpl->tpl_vars['i']->value%2==0){?> class="bgType" <?php }?>>
                            <td width="5%"><input class="box3" type="checkbox" name="oIds[]" id="oIds" value="<?php echo $_smarty_tpl->tpl_vars['object']->value->getField('id');?>
" /></td>
                            <td width="10%"><?php echo $_smarty_tpl->tpl_vars['object']->value->getField('id');?>
</td>
                            <td width="20%"><?php echo $_smarty_tpl->tpl_vars['object']->value->getField('code');?>
</td>
                            <td width="35%"><?php echo $_smarty_tpl->tpl_vars['object']->value->getField('colour');?>
</td>
                            <td width="10%"><?php if ($_smarty_tpl->tpl_vars['object']->value->isDeleted()){?><span style="color: #FF0000"><?php echo $_smarty_tpl->tpl_vars['object']->value->getStatusText();?>
</span><?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['object']->value->getStatusText();?>
<?php }?></td>
                            <td width="15%">
                                <?php echo $_smarty_tpl->getSubTemplate ("admin/action.temp.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title'=>'action'), 0);?>

                            </td>
                        </tr>
                        <?php } ?>
                        <?php }?>
                    </tbody>
                </table>
                <div class="paging">
                    <p class="btnType">
                        <input type="hidden" id="op"  name="op" value="<?php echo $_smarty_tpl->tpl_vars['op']->value;?>
" />              
                        <input type="hidden" id="act" name="act" value="<?php echo $_smarty_tpl->tpl_vars['act']->value;?>
" />
                        <input type="hidden" id="searchTerms" name="searchTerms" value="<?php echo $_smarty_tpl->tpl_vars['searchTerms']->value;?>
"/>
                        <input type="hidden" id="searchStatus" name="searchStatus" value="<?php echo $_smarty_tpl->tpl_vars['searchStatus']->value;?>
"/>
                        <input type="hidden" id="orderBy" name="orderBy" value="<?php echo $_smarty_tpl->tpl_vars['orderBy']->value;?>
"/>
                        <input type="hidden" id="orderDir" name="orderDir" value="<?php echo $_smarty_tpl->tpl_vars['orderDir']->value;?>
"/>
                        <input type="hidden" id="page" name="page" value="<?php echo $_smarty_tpl->tpl_vars['page']->value;?>
"/>
                        <input type="hidden" id="pid" name="pid" value="<?php echo $_smarty_tpl->tpl_vars['pid']->value;?>
"/>
                        <input type="hidden" id="oId" name="oId" value=""/>
                        <input type="hidden" id="position" name="position" value=""/>
                        <input type="hidden" id="plus" name="plus" value=""/>
                    </p>
                    <?php echo $_smarty_tpl->getSubTemplate ("admin/paging.temp.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title'=>'paging'), 0);?>

                </div>
            </div>
        </form>
    </div>
</div>
<!-- End content --><?php }} ?>